import java.util.Scanner;

public class num {
    public static void main(String[] args){
        int sum=29;
        System.out.println("原始数的二进制表示:"+Integer.toBinaryString(sum));
        int add=sum & 0xAAAAAAAA;
        System.out.println("奇数位二进制表示:"+Integer.toBinaryString(add));
        int abb=sum & 0x55555555;
        System.out.println("偶数位二进制表示:"+Integer.toBinaryString(abb));
    }
}
